<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>bug_add_form</title>
    <link rel="stylesheet" href="./style1.css" type="text/css">
    <script src="./assets/js/myJaveScript.js" type="text/javascript"></script>
    <link rel='stylesheet' href='./assets/css/bootstrap.min.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./assets/css/animate.min.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./style.css' type='text/css' media='all'/>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%2C800%7CMontserrat%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%7CDosis%3A400%2C700&#038;ver=4.5' type='text/css' media='all'/>
<link rel='stylesheet' href='./icons/elegantline/style.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./assets/css/font-awesome.min.css' type='text/css' media='all' />
<link rel='stylesheet' href='./assets/css/flexslider.css' type='text/css' media='all'/>
</head>
<body>
<header id="header">
<div id="mega-menu" class="header header2 header-sticky primary-menu icons-no default-skin zoomIn align-right">
	<nav class="navbar navbar-default redq">
	<div class="container">
		<div class="navbar-header">
			<a class="navbar-brand" >
			<img src="./assets/img/logo-dark.png" alt="logo">
			</a>
           
		</div>
        <div class="collapse navbar-collapse" id="navbar">
			<a class="mobile-menu-close"><i class="fa fa-close"></i></a>
			<div class="menu-top-menu-container">
				<ul id="menu-top-menu" class="nav navbar-nav nav-list">
					<li><div th:text="'您好，'+${session.name} + '!'" style="text-align: right;font-size: 20px"></div></li>
					<li><button type="button" style="background-color: #5899ce; color: white;width:100px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/}">注销登录</a></button></li>
				</ul>
			</div>
		</div>
	</div>
	</nav>
</div>
</header>	
<section id="home" style="padding:160px 0;background-image: url(https://unsplash.it/1324/683?random=0); background-position: center; background-repeat: no-repeat;background-size: cover;background-attachment:fixed;">
	<div class="container">
		<div class="textwidget">
			<h1 class="toptitle">软  件  缺  陷  管  理<br/> 系 统 <br/><br/><i class="fa fa-star roundicon"></i>
			</h1>
		</div>
	</div>
</section>
<div id="total1">
    <div class="main">
<!--Thymeleaf 前端框架以 Html 为载体-->
<form th:action="@{/doAdd}" th:object="${bug}" method="post">
    <table  id="table1" cellspacing="0px" align="center">
        <tr class="tableTitle" align="center">
            <td class="col2">level<br>(优先级)</td>
            <td class="col3">description<br>(描述)</td>
            <td class="col3">model<br>(模块)</td>
            <td class="col4">createTime<br>(创建时间)</td>
            <td class="col7">typeId<br>(类型ID)</td>
			<td class="col6">statusId<br>(状态ID)</td>
            <td class="col8">submitterId<br>(提交人ID)</td>
        </tr>
        <tr align="center">
            <td><input type="text" th:field="*{level}"></td>
            <td><input type="text" th:field="*{description}"></td>
			<td>
				<select th:field="*{modelId}">
					<option th:each="modelObj : ${modelMap}" th:value="${modelObj.value}" th:text="${modelObj.key}"></option>
				</select>
			</td>
<!--			th:value="${date1.toString()}"-->
            <td><input type="date" th:field="*{createTime}"></td>
            <td>
                <select th:field="*{typeId}">
                    <option th:each="typeObj : ${typeMap}" th:value="${typeObj.value}" th:text="${typeObj.key}"></option>
                </select>
            </td>
			<td>
				<select th:field="*{statusId}">
					<option value="1" th:text="1"></option>
				</select>
			</td>
            <td>
				<select th:field="*{submitterId}">
					<option th:value="${session.id}" th:text="${session.id}"></option>
				</select>
			</td>
        </tr>
        <p>
			<button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px"><input type="submit" value="提交" onclick="javascript:return window.confirm('确认提交吗？')"/></button>
			<button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px"><input type="reset" value="重置" onclick="javascript:return window.confirm('确认重置吗？')"/></button>
			<button type="button" style=" color: black;width:130px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/addModel_type}">添加模块类型</a></button>
			<button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/findAllBugs_submitter}">返回</a></button>
		</p>
    </table>
</form>
	</div>
<div>
<br><br><br>
</div>
<footer id="footer" class="footer2">
	<div class="copyright">
		<div class="container">
			<div class="row">
				<div class="col-md-6">
					<small>
					&copy; <a th:href="@{/}">
							  Y.W.J &nbsp L.H.Y &nbsp L.Z.L &nbsp L.Q.L &nbsp S.S.K
					  </a>
					</small>
				</div>
				<div class="col-md-6 text-right">
					<div class="footer-menu">
						<ul id="menu-footer-links" class="menu">
							<li><a href="#"><i class="fa fa-facebook"></i> Like us on Facebook</a></li>
							<li><a href="#"><i class="fa fa-twitter"></i> Follow us on Twitter</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</footer>
</div>
</body>
</html>

